<html>
<meta charset="UTF-8">
<script src="../babel.min.js"></script>
<script src="../react.development.js"></script>
<script src="../react-dom.development.js"></script>

<head>
    <title>事件处理2</title>
</head>

<body>
    <div id="root"></div>
    <script type="text/babel">
        function Form() {
            function handleSubmit(e) {
                e.preventDefault()
                console.log("you clicked button!!")
            }

            return <form onSubmit={handleSubmit}>
                <button type="submit">Click Me To Submit Information</button>
            </form>
        }

        ReactDOM.render(Form(), document.getElementById("root"))
    </script>
</body>

</html>